<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        #header{
            background: blue;
            height: 50px;
        }
        input{
            width: 98%;
            border-radius: 5px;
            height: 20px;
            margin-top: 12px;
        }
        #tupian{
            width: 98%;
            margin: auto;
            height: 80px;
            background: blue;
            margin-top:10px;
            margin-bottom: 10px;
            border-radius: 10px;
        }
        #section{
            display: flex;
            justify-content: space-between;
            margin-top: 10px;
        }
        #section .name{
            color: rgba(28, 5, 28, 0.864);
        }
        #section div.active{
            color: black;
            font-weight: 800;
        }
        .apps{
            padding: 5px 10px;
            background-color: #aaa;
            margin-right: 10px;
            margin-bottom: 5px;
            /* display: inline-block; */
            border-radius: 10px;
            font-size: 14px;
        }
        #app{
            display: flex;
            justify-content: space-between;
        }
        #shop .shops {
            display: flex;
            justify-content: space-around;
            margin: 20px auto 20px;
        }

        #shop .shops img {
            display: block;
            width: 20%;
        }

        #shop .shops .store {
            width: 75%;
            font-size: 10px;
        }

        #shop .shops .store .datas {
            display: flex;
            justify-content: space-between;
        }

        #fd {
            position: fixed;
            bottom: 0;
            width: 100%;
            display: flex;
            justify-content: space-around;
            height: 60px;
            text-align: center;
            border-top: 2px solid #000;
            background-color: #f5f5f5;
            line-height: 60px;
        }

        #fd .list {
            width: 30%;
        }

        #fd div.active {
            color: white;
            width: 25%;
            background-color: #ccc;
            font-size: 20px;
        }
        .tabbar{
            position: fixed;
            bottom: 0;
            width: 100%;
            padding: 10px;
            border-top: 1px solid #ccc;
            box-sizing: border-box;
            display: flex;
            justify-content: space-around;
            text-align: center;
            line-height: 40px;
        }
        .tabbar div.active{
            color: blue;
            font-size: 20px;
        }
    </style>
</head>
<body>
    <div id="header">
        <input type="text">
    </div>
    <div id="tupian"></div>
    <h2>猜你喜欢</h2>
    <div id="section">
        <div :class = "{active:currentIndex == index}" @click="handleClick(index)" class="btn" v-for = "(item,index) in list">
            <span class="name">{{item.name}}</span>
        </div>
    </div>
    <div id="app">
        <span class="apps" v-for="(item,index) in arr">{{item}}</span>
    </div>
    <div id="shop">
        <div class="shops" v-for="(item,index) in shopArr">
            <img :src="item.pic" alt="">
            <div class="store">
                <h2>{{item.name}}</h2>
                <div class="staMth">
                    <span class="star">{{item.star}}</span>
                    <span class="mthShow">月售{{item.sales}}</span>
                </div>
                <div class="datas">
                    <div>
                        <span class="start">起送￥{{item.qs}}</span>
                        <span class="ps">配送￥{{item.moveMoney}}</span>
                    </div>
                    <div>
                        <span class="time">{{item.time}}分钟</span>
                        <span class="distance">{{item.distance}}km</span>
                    </div>

                </div>
            </div>
        </div>
    </div>
    <div id="apps">
        <div class="tabbar">
            <!-- :style="{color: currentIndex == index?'white':'', background: currentIndex == index?'red':'' }"  -->

            <div  :class="{active: currentIndex == index }"  @click="handleClick(index)" class="btn" v-for="(item,index) in alist">
                <!-- <img src="" alt=""> -->
                <div class="name">{{item.name}}</div>
            </div>
        </div>
    </div>

    <script src="vue-2.5.21.js"></script>
    <script src="zuoye.js"></script>
</body>
</html>